﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenQA.Selenium;
using OpenQA.Selenium.Support.PageObjects;

namespace Page.Objects
{
    public class ProfilePage : InternalPage
    {
        [FindsBy(How = How.Id, Using="email")]
        public IWebElement EmailField;

        [FindsBy(How = How.Name, Using= "submit")]
        public IWebElement SaveElement;

        [FindsBy(How = How.ClassName, Using = "content")] 
        private IList<IWebElement> _divContent;

        public bool IsNoErrorOnPage()
        {
            return _divContent.Count > 1;
        }
    }
}
